package com.gsezone.s12;

import java.util.HashMap;
import java.util.Map;

import com.gsezone.s12.model.User;

public class MyMap {

	public static void main(String[] args) {
		
		Map<Long, User> users = new HashMap<>();

		users.put(1l, new User(1l, "Grzegorz"));
		users.put(2l, new User(2l, "Marek"));
		users.put(3l, new User(3l, "Karol"));
		
		System.out.println(users);

		users.put(4l, new User(4l, "Lukasz"));
		
		System.out.println(users);

		User lukasz = users.get(4l);
		
		System.out.println(lukasz.getName());
	}
	
}
